<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib prefix="ajax" uri="http://ajaxtags.org/tags/ajax"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
		<script type="text/javascript" src="<%=request.getContextPath()%>/js/common/runTimeValidator.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/reglas/reglas.js"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Alta Reglas</title>
</head>
<div id="main" align="left">
	<jsp:include page="/comunes/menu/menu.jsp"></jsp:include>
	<br /> <br /> <br />
	<html:html>
	<body>
		<div id="mask" style="display: none;"></div>
		<div id="barra" style="display: none;">
			<div style="font-weight: bold; color: white; font-size: 12pt;">
				<br>
				<br> <img src="images/clock-loader.gif" alt="" /><br>
				<br>Procesando espere un momento...
			</div>
		</div>
		
		
		<table align="center" style="font-size: 11px;">
			<tr>
				<td align="center">
				<div id="divAlta" >
					<fieldset title="Alta Regla" style="width: 100%" onkeyup="runTimeValidator.init();">
						<legend>&nbsp;Alta Regla </legend>


						<html:form action="admonReglas.do" styleId="reglasForm">
							<table border="0" align="center" title="Receta" width="100%"
								style="font-size: 11px;">

								<tr>
									<td align="right">id</td>
									<td align="center"><html:text property="idRegla" size="5"
											disabled="true" styleId="idRegla"></html:text> <html:hidden
											property="idRegla" styleId="idRegla" /></td>
									<td align="right">Nombre</td>
									<td align="center">
											<html:text property="descripcion" styleId="descripcion" onchange="javaScript:this.value=this.value.toUpperCase();" 
						  			 					onkeyup="javaScript:this.value=this.value.toUpperCase();"  >
											</html:text>
									</td>
									<td align="right">Unidad
									</td>
									<td align="center">
									
									<html:select property="idUnidad" 
									
											styleId="idUnidad" style="font-size:10px"  >
											<html:option value="-1">-Seleccione-</html:option>
											<logic:notEmpty name="unidades">
												<html:optionsCollection label="descUni" name="unidades" 
													value="id" />
											</logic:notEmpty>
									
										</html:select>
									
									</td>
									<td>
									<a style="font-size: 12px" href="#"
										onclick="validaForm('validaNombre','0');runTimeValidator.init();">Agrega Regla</a></td>




								</tr>

							</table>
							
						</html:form>
					</fieldset>
					</div>	
				</td>
			</tr>
		</table>
		<div style="" id="divReglas">
									

	
		</div>
	</body>
	</html:html>
</div>